﻿using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;
using Huirui.Cavan.Presentation.Seedwork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Huirui.Cavan.Presentation.ViewModel.SystemModule
{
    public class EmployeeViewModel : EntityModel<Employee, string, EmployeeSearch>, IEmployeeViewModel
    {
        public List<SelectListItem> DepartmentList { get; set; }
        public List<SelectListItem> Jobs { get; set; }
        public string Purpose { get; set; }
        public string NoPrefixId { get; set; }

        public EmployeeViewModel()
        {
            this.DepartmentList = new List<SelectListItem>();
            this.Jobs = new List<SelectListItem>();
        }
    }
    public class EmployeeJson : BaseJson<string>
    {
        public string Name { set; get; }
        public string EmployeJob { set; get; }
        public int EmployeJobId { set; get; }
        public decimal? CommissionRate { set; get; }
        public string Sex { set; get; }
        public string SexId { set; get; }
        public string Birthday { set; get; }
        public string Email { set; get; }
        public string Mobile { set; get; }
        public string SMSQueryEnabled { set; get; }
        public string SMSQueryEnabledId { set; get; }
        public string Remark { set; get; }
        public string ManagerEmployeeCode { set; get; }
        public string DepartmentName { set; get; }
        public string DepartmentId { set; get; }
    }

    public class EmployeeJsonViewModel : JsonViewModel<EmployeeJson>
    {

    }
}
